package com.zpl.goods.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zpl.goods.entity.Goods;
import com.zpl.goods.entity.dto.GoodKeyWordDTO;
import com.zpl.goods.entity.vo.GoodVO;
import com.zpl.goods.entity.vo.SellVO;

import java.util.List;

public interface GoodsService {
    boolean insert(Goods goods);
    boolean delete(Long id);
    boolean update(Goods goods);
    Goods getGood(Long id);
    List<Goods> selectByTitle(String title);
    List<Goods> getAllGoods();
    IPage<Goods> getGoods(GoodKeyWordDTO goodKeyWordDTO);
    IPage<GoodVO>  getGoodList(GoodKeyWordDTO goodKeyWordDTO);
    IPage<Goods> selectByPage(GoodKeyWordDTO goodKeyWordDTO);
    List<SellVO> getSellGoods();
    List<SellVO> getNewGoods();
    List<SellVO> getLike();
}
